/** 通用格式化 */
export const simpleFormatter =
  ({ formatter = null as Function | null, prefix = '', suffix = '' }) =>
  (row, column, value, index) => {
    const newValue = formatter ? formatter(row, column, value, index) : value
    return `${prefix}${newValue}${suffix}`
  }

/** 金额格式化 */
export const moneyFormatter = (row, column, value, index) => value / 100 + ' 元'
